package me.aurora.service.mapper;

import me.aurora.domain.User;
import me.aurora.service.dto.UserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * @author 郑杰
 * @date 2018/08/22 11:54:10
 */
@Mapper(componentModel = "spring",uses = {RoleMapper.class})
public interface UserMapper extends EntityMapper<UserDTO, User>{

    @Mapping(target = "password",ignore = true)
    User toEntity(UserDTO userDTO);
}
